package com.example.springboot.controller;

import com.czk.NzqService;
import com.czk.stater.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/10/19 21:17
 */
@RestController
public class MyStarterController {
    @Autowired
    private HelloService service;
    @Autowired
    private NzqService nzqService;
    @GetMapping("/love")
    public String hello(){
        nzqService.print();
        return service.hello("love");
    }
}
